#include "Wrappers.h"
#include <boost/python.hpp>

namespace bp = boost::python;

namespace osgwrap
{

OSG::Int32 ptrGetRefCount(OSG::FieldContainerPtr ptr)
{ return ptr.getRefCount(); }

OSG::UInt32 ptrGetFieldContainerId(OSG::FieldContainerPtr ptr)
{ return ptr.getFieldContainerId(); }

bool isNullFC(OSG::FieldContainerPtr ptr)
{ return OSG::NullFC == ptr; }

bool osgInitWrapper(const unsigned int argc, bp::list pythonArgv)
{
   std::vector<char*> argv(argc);

   for ( unsigned int i = 0; i < argc; ++i )
   {
      argv[i] = bp::extract<char*>(pythonArgv.pop());
   }

   return osg::osgInit(argc, &argv[0]);
}

} // namespace osgwrap

